package com.agile.leetcode.hutool.emoji;

import cn.hutool.extra.emoji.EmojiUtil;
import org.junit.Test;

/**
 * 表情的转换
 *
 * @Author ChenZhangKun
 * @Date 2021/1/4 10:07
 */
public class EmojiDemo {
    @Test
    public void test1(){
        // 将表情转换为字符
        String alias = EmojiUtil.toAlias("哈哈");
        System.out.println(alias);
    }
    @Test
    public void test2(){
        // 将表情转换为字符
        String alias = EmojiUtil.toUnicode(":smile:");
        System.out.println(alias);
    }
}
